package com.ruoyi.work.mapper;

import java.util.List;
import com.ruoyi.work.domain.WorkExpense;

/**
 * 报销登记Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-03
 */
public interface WorkExpenseMapper 
{
    /**
     * 查询报销登记
     * 
     * @param expenseId 报销登记主键
     * @return 报销登记
     */
    public WorkExpense selectWorkExpenseByExpenseId(Long expenseId);

    /**
     * 查询报销登记列表
     * 
     * @param workExpense 报销登记
     * @return 报销登记集合
     */
    public List<WorkExpense> selectWorkExpenseList(WorkExpense workExpense);

    /**
     * 新增报销登记
     * 
     * @param workExpense 报销登记
     * @return 结果
     */
    public int insertWorkExpense(WorkExpense workExpense);

    /**
     * 修改报销登记
     * 
     * @param workExpense 报销登记
     * @return 结果
     */
    public int updateWorkExpense(WorkExpense workExpense);

    /**
     * 删除报销登记
     * 
     * @param expenseId 报销登记主键
     * @return 结果
     */
    public int deleteWorkExpenseByExpenseId(Long expenseId);

    /**
     * 批量删除报销登记
     * 
     * @param expenseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkExpenseByExpenseIds(String[] expenseIds);

    public List<WorkExpense> selectWorkExpenseByExpenseIds(String[] expenseIds);
    /**
     * 销账查询返款单
     *
     * @param incomingId 来款主键
     * @return 结果
     */
    public List<WorkExpense>  selectBackByCancel(Long incomingId);
    /**
     * 销账查询税金单
     *
     * @param incomingId 来款主键
     * @return 结果
     */
    public List<WorkExpense>  selectTaxByCancel(Long incomingId);
}
